/*** 
 * @Date: 2020-08-13 10:11:24
 * @LastEditors: leehave
 * @LastEditTime: 2020-08-13 17:04:35
 */
import qs from 'qs'
import request from '@/utils/request'
import {PORT} from './api'
import { objectConvertToQuery } from '@/utils/index'
/**
 * 获取基本信息
 * @param params {code: code}
 */
export function appInfo() {
  let url = objectConvertToQuery()
  return request({
    url: PORT.appInfo + url,
    method: 'get',
    // data: url,
  })
}
/**
 * 首页导航服务
 */
export function homerServer(params) {
  let url = objectConvertToQuery(params)
  return request({
    url: PORT.homeServer + url,
    method: 'get',
    // data: url,
  })
}
